class Utils{
    constructor(){}

    formatDate(){
        let date = new Date();
        let year = date.getFullYear();
        let month = date.getMonth() + 1;
        month = month >= 10 ? month : '0' + month;
        let day = date.getDate();
        day = day >= 10 ? day : '0' + day;
        return `${year}-${month}-${day}`;
    }
}

export const utils = new Utils();